if (redpack_config.isBackgroundImage == 1){
    $('.backgroundImg-container').show();
}else {
    $('.backgroundImg-container').hide();
}
if (redpack_config.isBackgroundColor == 1){
    $('.backgroundColor-container').show();
}else {
    $('.backgroundColor-container').hide();
}
initDatetimepicker('#redpack_act_time');
initUploadImageFile('.backgroundImg-container');
initTinymce();
$('.switch').bootstrapSwitch();